package net.soevar.database.dao;

import net.soevar.database.hibernate.HibernateUtil;

import org.hibernate.Session;

public class HibernateDaoFactory extends DaoFactory {

	/**
	 * @return kembaliannya
	 */
	public Session getCurrentSession() {
		return HibernateUtil.currentSession();
	}

	@Override
	public AthRoleDao getAthRoleDao() {
		return new AthRoleDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public AthUserDao getAthUserDao() {
		return new AthUserDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public AgamaDao getAgamaDao() {
		return new AgamaDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public JenisBeritaDao getJenisBeritaDao() {
		return new JenisBeritaDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public BeritaDao getBeritaDao() {
		return new BeritaDaoImpl().setSession(getCurrentSession());
	}

}
